﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using FichoWeb.Common;

namespace FichoWeb.Models
{
    public class LoginModel
    {
        #region Private members
        private string _Username;
        private string _Password;
        #endregion

        [Required]
        public string Username
        {
            get
            {
                return _Username;
            }
            set
            {
                _Username = value.ToLower();
            }
        }

        [Required]
        public string Password
        {
            get
            {
                return _Password.ToSHA();

            }
            set
            {
                _Password = value;
            }
        }
    }
}
